package com.java.module.cms.domain;

import com.java.common.lang.annotation.Excel;
import com.java.common.lang.annotation.FileData;
import com.java.common.lang.annotation.RichText;
import com.java.common.lang.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 基础：帮助中心对象 info_help
 *
 * @author Administrator
 * @date 2021-04-01
 */
@FileData
@RichText
public class Help extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long hid;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long px;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 图片（保留字段）
     */
    @Excel(name = "图片", readConverterExp = "保留字段")
    @FileData
    private String pic;

    /**
     * 图文详情
     */
    @Excel(name = "图文详情")
    @RichText
    private String content;

    /**
     * 删除标志（0默认 1删除）
     */
    private Integer delFlag;

    public void setHid(Long hid) {
        this.hid = hid;
    }

    public Long getHid() {
        return hid;
    }

    public void setPx(Long px) {
        this.px = px;
    }

    public Long getPx() {
        return px;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getPic() {
        return pic;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("hid", getHid()).append("px", getPx())
                .append("title", getTitle()).append("pic", getPic()).append("content", getContent())
                .append("createTime", getCreateTime()).append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag()).toString();
    }
}
